<?php
/*
 * 控制器基类
 * @author neoliang
 */
class Controller {
    //模型
    var $db;
    //视图
    var $T;
    //读取器;
    var $load;
    public static function getInstance(){
        return $this;
    }
    //构造函数，只能被继承
    public function __construct(){
        $this->load = new Loader();
        $this->T = new Smarty();
    }
        
}